import 'package:json_annotation/json_annotation.dart';
import 'package:stock_check/common/model/ITAsset.dart';
import 'package:stock_check/common/model/envir.dart';

part 'checkITDeviceItemDetail.g.dart';

@JsonSerializable()
/// 详细检查信息
class CheckITDeviceItemDetail{
  int planId; // 计划id
  int recordId; // 任务id
  int userId; // 实施者id
  List<ITAsset> assetsList;
  List<Envir> envirList;
  String content; // 本次巡检结论
  String curStartTimeStr;// 巡检开始时间

  CheckITDeviceItemDetail({this.planId, this.recordId, this.userId,
      this.assetsList, this.envirList,this.content, this.curStartTimeStr});

  CheckITDeviceItemDetail.empty();

  //不同的类使用不同的mixin即可
  factory CheckITDeviceItemDetail.fromJson(Map<String, dynamic> json) => _$CheckITDeviceItemDetailFromJson(json);

  Map<String, dynamic> toJson() => _$CheckITDeviceItemDetailToJson(this);
}